package com.avengers.common.bean.enums;

/**
 * @author yu.wang
 * @since 2/2/21 3:34 PM
 **/
public enum TransferOutWhoisStatus {
    wait(0, "等待查询当前注册商"),
    deal(1, "已查询当前注册商"),
    changed(2, "注册商已变更"),
    success(3, "转出成功"),
    canceled(4, "已取消");

    public final Integer value;
    public final String comment;

    TransferOutWhoisStatus(Integer value, String comment) {
        this.value = value;
        this.comment = comment;
    }

    public static TransferOutWhoisStatus of(Integer value) {
        for (TransferOutWhoisStatus whoisStatus : values()) {
            if (whoisStatus.value.equals(value)) {
                return whoisStatus;
            }
        }
        return null;
    }
}
